//
//  SNOrderFormDetailGoodsModel.h
//  app
//
//  Created by 王少宁 on 15/5/18.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SNGiftModel.h"
#import "SNPromotionModel.h"

#define kGoodsViewHeight 96

typedef NS_ENUM(NSInteger, ReturnGoodsBtnType) {
    ReturnGoodsNone,            //不显示申请售后按钮
    ReturnGoodsReturnApply,     //还没有申请过售后,申请退换货
    ReturnGoodsReturnAdd      //再一次申请售后,追加申请退换货原因
};

@interface SNOrderFormDetailGoodsModel : NSObject

/** 活动id*/
@property (nonatomic, copy) NSString * act_id;
/** 商店id*/
@property (nonatomic, copy) NSString * shop_id;
/** 产品id*/
@property (nonatomic, copy) NSString * product_id;
@property (nonatomic, copy) NSString * title_pic;
@property (nonatomic, copy) NSString * product_title;
@property (nonatomic, copy) NSString * price;
@property (nonatomic, copy) NSString * sale_price;
/** 购买数量*/
@property (nonatomic, copy) NSString * product_num;
/** 是否含有评价按钮*/
@property (nonatomic, assign) BOOL includeCommentBtn;
/** 申请售后Btn的类型*/
@property (nonatomic, assign) ReturnGoodsBtnType returnGoodsBtnType;
/** 赠品*/
@property (nonatomic, retain) SNGiftModel * giftModel;
/** 促销活动*/
@property (nonatomic, retain) SNPromotionModel * promotionModel;
/** cell 的高度*/
@property (nonatomic, assign) CGFloat cellHeight;


//新添加字段,comments为评价按钮状态，returns为申请按钮状态 : 0显示，1不显示
@property (nonatomic, copy) NSString * comments;
@property (nonatomic, copy) NSString * returns;

+ (instancetype)modelWithDict:(NSDictionary *)dict commentBtn:(BOOL)commmentBtn returnGoodsBtnType:(ReturnGoodsBtnType)type;
- (instancetype)initWithDict:(NSDictionary *)dict commentBtn:(BOOL)commmentBtn returnGoodsBtnType:(ReturnGoodsBtnType)type;

@end
